const mongoose = require('mongoose')
mongoose.connect('mongodb://localhost/xia')
.then(() => {
    console.log('连接成功。。。')
})
.catch(err => {
    console.log("连接出错。。。", err)
})